package com.allwees.bs.core.modelbase.constant;

/**
 * 常用code
 *
 * @author jy2016
 */
public interface ResultCode {
    /**
     * 成功
     */
    int SUCCESS = 1;

    /**
     * Token error
     */
    int INVALID_TOKEN = -100;

    /**
     * 没有权限
     */
    int UNAUTHORIZED = -105;

    /**
     * 访问太频繁 请稍后再试
     */
    int EXCEED_ACCESS_LIMIT = -135;

    /**
     * 服务器异常 减少使用SERVER_ERROR 太笼统 理解困难 即使日志中打印也不知道是什么问题
     */
    int SERVER_ERROR = -1;

    /**
     * 没有找到
     */
    int NOT_FOUND = -2;

    /**
     * 资源已经存在
     */
    int ALREADY_EXISTS = -3;

    int DISABLED = -4;

    /**
     * 转换错误
     */
    int CONVERT_ERROR = -6;

    /**
     * 格式错误
     */
    int FORMAT_ERROR = -7;

    /**
     * 编码错误
     */
    int ENCODE_ERROR = -8;

    /**
     * 业务数据不一致
     */
    int CONSISTENCY_ERROR = -9;

    /**
     * 参数错误
     */
    int PARAM_ERROR = -10;

    int USERS_ORIGIN_PASSWORD_NOT_VALID = 51;

    int USER_EMAIL_IS_EMPTY = 52;

    int USERS_NO_PASSWORD_SET = 53;

    int USERS_CHANGE_EMAIL_WITH_SAME = 54;

    int USERS_CHANGE_EMAIL_WITH_EXISTS = 55;

    int VERIFY_CODE_EXPIRED = 60;

    int VERIFY_CODE_NOT_VALID = 61;

    int DATA_NO_PRIVILEGE = 80;


    // ***************************** 订单部分 *****************************

    int AT_LEAST_ONE_DEFAULT = 1003;

    int ORDER_NOT_SUCCESS = 1001;

    int ORDER_NOT_REVIEWABLE = 1002;

    int ORDER_REPEAT_REVIEW = 1004;

    // 商品SKU库存不足
    int ORDER_SKU_QUANTITY_NOT_ENOUGH = 10001;

    // 商品已下架
    int ORDER_PRODUCT_OFF_SHELVES = 10002;

    int ORDER_CANNOT_CANCEL_PAID = 10003;

    int ORDER_CANNOT_REQUEST_REFUND = 10004;

    int ORDER_CANNOT_CONFIRM_SHIPPING = 10005;

    int ORDER_ITEM_MUST_INCLUDE_SKU = 10006;

    int ORDER_CANNOT_APPROVE_REFUND = 10007;

    int ORDER_CANNOT_CANCEL_REFUND = 10008;

    int ORDER_TRACK_SHIPPING_ERROR = 10009;

    int ORDER_EXCEED_REFUND_LIMIT = 10010;

    int ORDER_SHIPPING_WRONG_LOGISTIC = 100011;

    int ODDER_PRODUCT_SUM_LIMIT = 10012;

    int ORDER_CANNOT_SHIP = 10013;

    int ORDER_CANNOT_PRINT = 10014;

    int ORDER_CANNOT_DELIVER = 10015;

    int ORDER_MORE_THAN_ONE_FREEGIFT = 10016;

    // ***************************** 支付部分 *****************************

    int PAYMENT_ORDER_STATE_IS_NOT_UNPAID = 20001;

    int PAYMENT_REFUND_ORDER_ID_NOT_MATCH = 20002;

    int PAYMENT_REFUND_PAYMENT_NOT_APPROVED = 20003;

    int PAYMENT_PAYPAL_CREATE_ERROR = 20004;

    int PAYMENT_PAYPAL_CREDITCARD_ERROR = 20005;

    int PAYMENT_COD_PAY_ERROR = 20006;

    int PAYMENT_PAYBY_QUERY_ERROR = 20016;

    int PAYMENT_PAYBY_TRANSFER_ERROR = 20017;

    int PAYMENT_PAYBY_TRANSFER_QUERY_ERROR = 20018;


    // ***************************** 商品部分 *****************************
    int PRODUCT_CATEGORY_NOT_FOUND = 30001;

    // ***************************** 活动部分 *****************************

    int CANNOT_PINTUAN_WITH_YOURSELF = 40001;

    int BOOSTER_DUPLICATE_GROUP = 40002;

    int BOOSTER_USER_REPEAT = 40003;

    int BOOSTER_DEVICE_REPEAT = 40004;

    int BOOSTER_GROUP_EXPIRED = 40005;

    int BOOSTER_GROUP_ALREADY_SUCCEED = 40006;

    int BOOSTER_GROUP_ALREADY_FAILED = 40007;

    int BOOSTER_ACTIVITY_EXPIRED = 40008;

    int COUPON_EXCEED_MAX_COUNT = 40009;

    // ***************************** 商家部分 *****************************

    int MERCHANT_ACCOUNT_SUPPLY_WRONG_STATE = 50001;

    int MERCHANT_ACCOUNT_REQUEST_WITHDRAW_MONEY_NOT_ENOUGH = 50002;

    int MERCHANT_ACCOUNT_REQUEST_WITHDRAW_DONT_HAVE_DEFAULT_WITHDRAW_ACCOUNT = 50003;

    int MERCHANT_WITHDRAW_WITH_WRONG_PWD = 50004;

    // ***************************** 外部依赖 *****************************

    int THIRD_PARTY_ERROR = 60001;

    int THIRD_PARTY_STATUS_ERROR = 60002;

    int UPLOAD_OSS_FAILED = 60003;

    int CREATE_EXPRESS_FAILED = 60101;

    int CARRIER_NOT_FOUND = 60120;

    int TRACKING_NOT_FOUND = 60121;

    int SYNC_ORDER_TO_MABANG_FAILED = 60130;

    int APPLE_KIDS_NOT_FOUND = 60140;
    int APPLE_ILLEGAL_ISSUER = 60141;
    int APPLE_JWT_EXPIRED = 60142;
    int APPLE_JWT_VERIFY_FAILED = 60143;
    int APPLE_ILLEGAL_AUDIENCE = 60144;
    // ***************************** 系统相关 *****************************

    int GENERATE_SEQUENCE = 70001;
    int COUPON_NOT_FOUND = 90001;
    int COUPON_EXPIRED = 90002;
    int USER_CASH_INSUFFICIENT = 90003;
    int USER_COUPON_USED = 90004;
    int UNKNOWN_AUTH_TYPE = 90005;

    int MOBILE_VALIDATE_ERROR = 70002;

    // ***************************** 库存部分 *****************************
    int NO_STOCK_ERROR = 80001;
    int PRODUCT_LIMIT_CHECKOUT = 80002;
    int PRODUCT_LIMIT_CART = 80003;
    // ***************************** 订阅相关 *****************************

    // ***************************** 地址相关 *****************************
    int REGION_NOT_SUPPORT = 5001;


}
